home *** CD-ROM | disk | FTP | other *** search
- /*
- * CObject.h
- * ©1994 Jon Wätte
- */
-
- #pragma once
-
- #ifndef __COBJECT__
- # define __COBJECT__
-
- #include <Types.h>
- #include <Memory.h>
- #include <Global.h>
- #include <stddef.h>
- #include "Exceptions.h"
- #include "oops.h"
- #include <TCLUtilities.h>
-
-
- #define Length(x) (((unsigned char *)(x))[0]) // for lack of a better place to put it
- #define topLeft(x) (*(Point*)&((x).top))
- #define botRight(x) (*(Point*)&((x).bottom))
-
- extern CObject * new_CObject ( ) ;
-
- class CObject {
-
- public:
-
- char * _clsName ;
-
- CObject ( ) ;
- void * operator new ( size_t objSize ) ;
-
- virtual CObject * Copy ( void ) ;
- virtual void Dispose ( void ) ;
-
- static void SubclassResponsibility ( void ) ;
- virtual Boolean Lock ( Boolean fLock ) ; // always locked
- virtual Boolean MemberOf ( char * name ) ;
-
- } ;
-
- #endif
-